package com.dsjy.yf.address.mapper;

import java.util.List;

/**
 * @author whj
 * @version 1.0
 * @date 2021-03-11 14:38
 */
public interface CommonMapper {
    /**
     * 撤销删除
     *
     * @param tableName 表名
     * @param id        记录id
     * @param isDelete  是否撤销
     * @return
     */
    Integer fakeDelete(String tableName, Integer id, Boolean isDelete);

    /**
     * 真删除
     *
     * @param tableName
     * @param id
     * @return
     */
    Integer deleteById(String tableName, Integer id);


    List<String> selectNameList(String fieldName,String tableName,Integer parentCode);
}
